package com.intct.hbase.ddl.namespace;

import org.apache.hadoop.hbase.client.Admin;

import java.io.IOException;

/**
 * @author gufg
 * @since 2025-07-10 11:10
 */
public class DropNamespace extends AbsNamespace {

    private String namespaceName;

    public DropNamespace(String namespaceName) {
        this.namespaceName =  namespaceName;
    }

    @Override
    public void execCommand(Admin admin) throws IOException {
        admin.deleteNamespace(namespaceName);
    }

    public static void main(String[] args) throws IOException {
        new DropNamespace("intct82_api").start();
    }
}
